// Learn TypeScript:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html

import Character from "../../../BASE/Character";
import realThing from "../../../BASE/realThing";
import GeZiManager from "../../../Manager/GeZiManager";
import { SHMessage } from "../../../Message/SHMessage";
import Dao from "./Dao";

const {ccclass, property} = cc._decorator;

@ccclass
export default class A125 extends Dao {

    TheNumber:string = 'A125';
    SH:number=2;
  start() {
    this.node.getComponent(Character).behurt2.push(this)
}

Behurt2(m:SHMessage,BeHC:any,HC:any) {

  if (HC.weapon.Wtype==1) {
        GeZiManager.dm-=1;
    }
}
remove(): void {
  GeZiManager.shanchu(this.node.getComponent(Character).behurt2,this) 
}
}